# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=efm-langserver
pkgver=0.0.44
pkgrel=1
pkgdesc="General purpose language server"
url="https://github.com/mattn/efm-langserver"
arch="all"
license="MIT"
makedepends="go"
options="net chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/mattn/efm-langserver/archive/refs/tags/v$pkgver.tar.gz"

export GOPATH="$srcdir"

build() {
	go build -ldflags="-s -w -X main.revision=$pkgver" -o $pkgname .
}

check() {
	go test ./...
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="
d156e8e636f88c3fa8662c9dc154036d5162400d12e0b63e183eb4c4363b13957c7c78b630d3013f62430a8262bf3160be2503ad672e7141fbe12124bce5bb53  efm-langserver-0.0.44.tar.gz
"
